package com.threeti.jiayusms.domain.service.communicationvoice;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.threeti.jiayusms.domain.model.CommunicationVoice;
import com.threeti.jiayusms.infrastructure.communicationvoice.CommunicationVoiceDao;

@Service
@Transactional
public class CommunicationVoiceUpdateServiceImpl implements
		CommunicationVoiceUpdateService {
	@Autowired
	private CommunicationVoiceDao dao;

	@Override
	public CommunicationVoice storeCommunicationVoice(CommunicationVoice communicationVoice) {
		return dao.store(communicationVoice);
	}
	
	@Override
	public void removeCommunicationVoiceBy(Long voiceTemplateId) {
		dao.removeBy(voiceTemplateId);
	}
}
